package com.comleader.uap.pojo.vo;

import java.time.LocalDateTime;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.comleader.uap.common.annotation.ExcelDictFormat;
import com.comleader.uap.common.convert.ExcelDictConvert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description 网址封堵列表VO对象
 * @Auhtor 连新景
 * @Date 2024/11/25 16:11
 */
@ApiModel(value = "网址封堵列表VO对象")
@Data
public class UrlBlockListVO {

    @ExcelIgnore()
    @ApiModelProperty(value = "封堵编号")
    private String seq;

    @ExcelProperty(value = "网址")
    @ApiModelProperty(value = "网址")
    private String url;

    @ExcelProperty(value = "封堵指令")
    @ApiModelProperty(value = "封堵指令")
    private String blockInfo;

    @ExcelProperty(value = "封堵类型",converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictCode = "zj_block_type")
    @ApiModelProperty(value = "封堵类型(1：URL封堵 2：域名封堵 3：IP封堵)")
    private Integer blockType;

    @ExcelProperty(value = "封堵要求",converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictCode = "zj_block_require")
    @ApiModelProperty(value = "封堵要求(1：全量下发封堵 2：域名备案库匹配过滤)")
    private Integer blockRequire;

    @ExcelProperty(value = "封堵时长")
    @ApiModelProperty(value = "封堵时长")
    private Integer blockDuration;

    @ExcelProperty(value = "封堵指令状态",converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictCode = "block_order_status")
    @ApiModelProperty(value = "封堵指令状态(1:已过滤 2:已下发)")
    private Integer blockCommandStatus;

    @ExcelProperty(value = "解封指令状态",converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictCode = "open_order_status")
    @ApiModelProperty(value = "解封指令状态(1:已过滤 2:已下发)")
    private Integer unblockCommandStatus;

    @ColumnWidth(value = 20)
    @ExcelProperty(value = "下发时间")
    @ApiModelProperty(value = "下发时间")
    private Date issueTime;

}